//
//  HttpManager.h
//  zaipin
//
//  Created by whj on 16/10/8.
//  Copyright © 2016年 master. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "HttpRequestBaseModel.h"
#import "Apis.h"
/** 网络请求类 单例对象 */
@interface HttpManager : NSObject

+ (HttpManager *)shareManager;

#define kHttpManager [HttpManager shareManager]

#pragma mark ---- 网络请求 POST 请求 ---
/** POST请求*/
-(void)httpPOSTRequestWithPath:(NSString *)URLPath withDictionary:(NSDictionary  *)dict  success:(void (^)(HttpRequestBaseModel  *resultModel))success failure:(void (^)(NSError *error))failure;

#pragma mark ---- 网络请求 GET  请求 ---
/** GET请求*/
-(void)httpGetRequestWithPath:(NSString *)URLPath withDictionary:(NSDictionary  *)dict  success:(void (^)(HttpRequestBaseModel  *resultModel))success failure:(void (^)(NSError *error))failure;

#pragma mark -----图片上传----
- (void)httpUploadImages:(UIImage *)image URL:(NSString *)URLPath param:(NSDictionary *)dict success:(void (^)(HttpRequestBaseModel  *resultModel))success failure:(void (^)(NSError *))failure;

@end
